//
//  HotCityViewController.m
//  Travel assistant
//
//  Created by 杨帆 on 16/3/15.
//  Copyright © 2016年 旅游助手. All rights reserved.
//

#import "HotCityViewController.h"

@interface HotCityViewController ()

@property (nonatomic,strong) UIWebView *webView;

@end

@implementation HotCityViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = self.name;
    
    [self addWebView];

}


-(void)addWebView{
    
    
    
    self.webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, Screen_W, Screen_H)];
    
    self.webView.backgroundColor = [UIColor whiteColor];
    
    [self.view addSubview:self.webView];
    
    NSString *url = self.webUrl;
    
    NSURLRequest *request = [[NSURLRequest alloc]initWithURL:[NSURL URLWithString:url]];
    
    dispatch_async(dispatch_get_main_queue(), ^{
        
        [self.webView loadRequest:request];
        
    });
    
    
}


@end
